﻿using Microsoft.Phone.Controls;
using System.Windows;

namespace CustomModal
{
    public partial class MainPage : PhoneApplicationPage
    {
        public MainPage()
        {
            InitializeComponent();
        }

        private void MostrarModal_Click(object sender, RoutedEventArgs e)
        {
            this.MyModal.IsOpen = true;
        }

        private void OcultarModal_Click(object sender, RoutedEventArgs e)
        {
            this.MyModal.IsOpen = false;
        }
    }
}